using System;
using System.Data.Entity.ModelConfiguration;
using System.Data.Common;
using System.Data.Entity;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using MobileWebsiteGenerator.Entities;

namespace MobileWebsiteGenerator.Mapping
{
	public class ThemeDetailMap : EntityTypeConfiguration<ThemeDetail>
	{
		public ThemeDetailMap()
		{
			// Primary Key
			this.HasKey(t => t.theme_id);

			// Properties
			this.Property(t => t.Theme_type)
				.HasMaxLength(50);
				
			// Table & Column Mappings
			this.ToTable("ThemeDetails");
			this.Property(t => t.theme_id).HasColumnName("theme_id");
			this.Property(t => t.HeaderText).HasColumnName("HeaderText");
            this.Property(t => t.HeadertextColor).HasColumnName("HeaderTextColor");
            this.Property(t => t.HHeaderText).HasColumnName("HHeaderText");
            this.Property(t => t.HHeadertextColor).HasColumnName("HHeaderTextColor");
			this.Property(t => t.Headercolor).HasColumnName("Headercolor");
			this.Property(t => t.HeaderImage).HasColumnName("HeaderImage");
			this.Property(t => t.backgroundImage).HasColumnName("backgroundImage");
			this.Property(t => t.backgroundColor).HasColumnName("backgroundColor");
			this.Property(t => t.Footertext).HasColumnName("Footertext");
            this.Property(t => t.FootertextColor).HasColumnName("FootertextColor");
            this.Property(t => t.HFootertext).HasColumnName("HFootertext");
            this.Property(t => t.HFootertextColor).HasColumnName("HFootertextColor");
			this.Property(t => t.Image).HasColumnName("Image");


            this.Property(t => t.Border).HasColumnName("facebookurl");
            this.Property(t => t.ButtonPicture).HasColumnName("twitterurl");
            this.Property(t => t.ButtonPicture).HasColumnName("gplusurl");



            this.Property(t => t.BannerImage).HasColumnName("BannerImage");
            this.Property(t => t.Bannertext).HasColumnName("Bannertext");
            

			this.Property(t => t.Swatch).HasColumnName("Swatch");
            this.Property(t => t.Size).HasColumnName("Size");
            this.Property(t => t.Border).HasColumnName("Border");
            this.Property(t => t.ButtonPicture).HasColumnName("ButtonPicture");
			this.Property(t => t.Theme_type).HasColumnName("Theme_type");
		}
	}
}

